package com.hxzy.controller.front.contamer.req;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/9/26 14:09
 * @Version 1.0
 */
@Getter
@Setter
@ToString
public class FrontContamerReq {

    /**
     * 账号
     */
    @NotBlank(message = "账号不能为空")
    @Pattern(regexp = "0?(13|15|17|18|14|19)[0-9]{9}",message = "手机号码格式不正确，只支持(13|14|15|17|18|19)开头的")
    private String loginId;

    /**
     * 密码加密
     */
    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "确认密码不能为空")
    private String passwordConfirm;

    /**
     * 昵称
     */
    @NotBlank(message = "昵称不能为空")
    private String userName;

    /**
     * 性别(0 女 1 男)
     */
    @NotBlank(message = "性别不能为空")
    private String gender;

    /**
     * 头像
     */
    @NotBlank(message = "头像不能为空")
    private String portrait;

    @NotBlank(message = "验证码不能为空")
    private String code;

    @NotBlank(message = "验证码标识不能为空")
    private String uuid;

}
